package com.yurun.mapper;

import com.yurun.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    int addUser(User user);

    int deleteUserById(Long id);

    int updateUserAvatorById(Long id,String avator);

    List<User> getUserList();

    User findByUsername(String username);
}
